<div ng-include="sys_html('common/_header')"></div>
<div class="fui-page page-merch-register">
    <div class="fui-content">
        <img style='width:100%;position: relative' ng-src="{{tomedia(pagedata.sale_live.addtopbg) || '../addons/jy_weishop/resource/images/agent-top.jpg'}}" />
		<div ng-if="pagedata.item.status==2" class="fui-alert fui-alert-danger">
			<p>您的申请被驳回：</p>
			<p>{{pagedata.item.reason}}</p>
			<p>您也可以修改信息重新提交</p>
		</div>
		<div ng-if="pagedata.item.status==0" class="fui-alert fui-alert-warning">
			<p>您已经提交了信息，请等待我们联系您!</p>
			<p>您也可以修改信息重新提交</p>
		</div>
			<div class="weui_cells weui_cells_form" style="margin-top:0">			
				<div class="weui_cell">
					<div class="weui_cell_hd"><label class="weui_label">直播间名字</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" ng-model="pagedata.item.name" type="text" name="name" placeholder="输入直播间名字"/>
					</div>
				</div>
				<div class="weui_cell">
					<div class="weui_cell_hd"><label class="weui_label">背景图</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<ul class="weui_uploader_files" ng-if="pagedata.item.cover_img">
							  <li class="weui_uploader_file" style="background-image:url({{tomedia(pagedata.item.cover_img)}})"></li>
						</ul>
						<div class="weui_uploader_input_wrp">
							 <span class="weui_uploader_input" ng-model="pagedata.item.cover_img" ng-click="image(pagedata.item,'cover_img')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple=""></span>
						</div>
					</div>
				</div>
				<div class="weui_cell">
					<div class="weui_cell_hd"><label class="weui_label">视频封面图</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<ul class="weui_uploader_files" ng-if="pagedata.item.feeds_img">
							  <li class="weui_uploader_file" style="background-image:url({{tomedia(pagedata.item.feeds_img)}})"></li>
						</ul>
						<div class="weui_uploader_input_wrp">
							 <span class="weui_uploader_input" ng-model="pagedata.item.feeds_img" ng-click="image(pagedata.item,'feeds_img')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple=""></span>
						</div>
					</div>
				</div>
				<div class="weui_cell">
					<div class="weui_cell_hd"><label class="weui_label">直播开始时间段</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" type="datetime-local" ng-model="pagedata.item.start_time" placeholder=""/>
					</div>
				</div>
				<div class="weui_cell">
					<div class="weui_cell_hd"><label class="weui_label">直播结束时间段</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" type="datetime-local" ng-model="pagedata.item.end_time" placeholder=""/>
					</div>
				</div>
				<div class="weui_cell">
					<div class="weui_cell_hd"><label class="weui_label">主播昵称</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" ng-model="pagedata.item.anchor_name" type="text" name="anchor_name" placeholder="输入主播昵称"/>
					</div>
				</div>
				<div class="weui_cell">
					<div class="weui_cell_hd"><label class="weui_label">主播微信号</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<input class="weui_input" ng-model="pagedata.item.anchor_wechat" type="text" name="anchor_wechat" placeholder="输入主播微信号"/>
					</div>
				</div>
				<div class="weui_cell">
					<div class="weui_cell_hd"><label class="weui_label">分享图</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<ul class="weui_uploader_files" ng-if="pagedata.item.shareimg">
							  <li class="weui_uploader_file" style="background-image:url({{tomedia(pagedata.item.shareimg)}})"></li>
						</ul>
						<div class="weui_uploader_input_wrp">
							 <span class="weui_uploader_input" ng-model="pagedata.item.shareimg" ng-click="image(pagedata.item,'shareimg')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple=""></span>
						</div>
					</div>
				</div>
				<div class="weui_cell">
					<div class="weui_cell_hd"><label class="weui_label">直播间类型</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<div class="fui-cell-label" ng-repeat="(key,value) in pagedata.types"  style="margin-right:0.8rem;float:left;margin-bottom:0.2rem">
							<input type="radio" ng-click="pagedata.item.type=key" class="fui fui-radio fui-radio-danger verify-radio" value="{{key}}"> {{value}}
						</div>
					</div>
				</div>
				<div class="weui_cell">
					<div class="weui_cell_hd"><label class="weui_label">女主？男主</label></div>
					<div class="weui_cell_bd weui_cell_primary">
						<div class="fui-cell-label" style="margin-right:0.8rem;float:left;margin-bottom:0.2rem">
							<input type="radio" ng-click="pagedata.item.sex=1" class="fui fui-radio fui-radio-danger verify-radio" value="1"> 男
						</div>
						<div class="fui-cell-label" style="margin-right:0.8rem;float:left;margin-bottom:0.2rem">
							<input type="radio" ng-click="pagedata.item.sex=0" class="fui fui-radio fui-radio-danger verify-radio" value="0"> 女
						</div>
					</div>
				</div>
				<div class="weui_cell weui_cell_switch">
							<div class="weui_cell_hd weui_cell_primary">是否关闭点赞</div>
							<div class="weui_cell_ft">
								<input class="weui_switch" type="checkbox" ng-checked="pagedata.item.closelike" ng-model="pagedata.item.closelike">
							</div>
				</div>
				<div class="weui_cell weui_cell_switch">
							<div class="weui_cell_hd weui_cell_primary">是否关闭货架</div>
							<div class="weui_cell_ft">
								<input class="weui_switch" type="checkbox" ng-checked="pagedata.item.closegoods" ng-model="pagedata.item.closegoods">
							</div>
				</div>
				<div class="weui_cell weui_cell_switch">
							<div class="weui_cell_hd weui_cell_primary">是否关闭评论</div>
							<div class="weui_cell_ft">
								<input class="weui_switch" type="checkbox" ng-checked="pagedata.item.closecomment" ng-model="pagedata.item.closecomment">
							</div>
				</div>
			</div>
			<div ng-if="pagedata.sale_live.applytitle!=null && pagedata.sale_live.applycontent!=null" class="fui-cell-group">
				<div class="fui-cell small ">
					<div class="fui-cell-info">
						<label class="checkbox-inline">
                            <input type="checkbox" class="fui-checkbox-primary" id="agree" ng-checked="pagedata.item.check==1"/> 我已经阅读并了解了<a ng-click="pagedata.show=1" id="btn-apply" style="color:#337ab7;">【{{pagedata.sale_live.applytitle}}】</a>。
                        </label>
					</div>
				</div>
			</div>
			<div class="modal-bg pop-apply-hidden" ng-if="pagedata.show==1">
				<div class="modal-content" style="top:10%;width:90%;left:5%">
						<div class="closebtn" ng-click="pagedata.show==0" style="opacity:1;"><i class="icon icon-cuowu"></i></div>
						<div class="news-body">
							<div class="title">{{pagedata.sale_live.applytitle}} / <small>Read &nbsp;Ggree</small></div>
							<div class="text" ng-bind-html="trust(pagedata.sale_live.applycontent)"></div>
						</div>
						<div class="modal-footer">
								<div ng-click="pagedata.show=false" class="mod-check" style="width: 100%; margin: 0;">我已阅读</div>
						</div>
				</div>
			 </div>
			 <div class='btn block btn-submit' style="background:linear-gradient(to right,rgba(124,47,239,1),rgba(165,88,226,1));color:#fff;margin:0.5rem 1rem;border-radius:1.8rem;line-height:1.8rem" ng-click="post(pagedata.item,'post','','','确认要创建直播间吗？创建后不能再修改了！')">申请开通直播间</div>
   </div> 
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>